package net.ericaro.neojavagen.expressions;

/**
 * <b>PrimitiveArrayCreation</b> ::= <{@link net .ericaro .neojavagen .types .PrimitiveType PrimitiveType}> <
 * {@link net .ericaro .neojavagen .expressions .DimSpecifier DimSpecifier}>
 * 
 * @author eric@ericaro.net
 */
public class PrimitiveArrayCreation extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.expressions.ArrayCreationExpressionBody {
	private net.ericaro.neojavagen.expressions.DimSpecifier dimSpecifier;

	private net.ericaro.neojavagen.types.PrimitiveType primitiveType;

	public PrimitiveArrayCreation(net.ericaro.neojavagen.types.PrimitiveType primitiveType, net.ericaro.neojavagen.expressions.DimSpecifier dimSpecifier) {
		super();
		this.primitiveType = primitiveType;
		this.dimSpecifier = dimSpecifier;
	}

	public net.ericaro.neojavagen.expressions.DimSpecifier getDimSpecifier() {
		return dimSpecifier;
	}

	public net.ericaro.neojavagen.types.PrimitiveType getPrimitiveType() {
		return primitiveType;
	}

	public void setDimSpecifier(net.ericaro.neojavagen.expressions.DimSpecifier dimSpecifier) {
		this.dimSpecifier = dimSpecifier;
	}

	public void setPrimitiveType(net.ericaro.neojavagen.types.PrimitiveType primitiveType) {
		this.primitiveType = primitiveType;
	}

	@Override
	public java.lang.String toString() {
		return print(primitiveType, dimSpecifier);
	}
}
